<div>
	<ul class="breadcrumb">
		<li style="width:100%;">
			<div class="divider" style="float:left;width:30%;"><h2>Matematika</h2></div>
			<h2><div id="timer" class="divider" style="float:right">00:00:00</div></h2>
		</li>
	</ul>
</div>
<div class="row-fluid">
	<div class="box span12">
		<div class="box-header well">
			<h2>Selamat Mengerjakan</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>				
			</div>
		</div>
		<form id="formUjian" class="form-horizontal" method='post' action='<?php echo base_url()."index.php/ujian/save/".$bab_id;?>'>
		<div class="box-content">
			<?php $x=1; 
				if($soal && $soal->num_rows() > 0){
					foreach($soal->result_array() as $item){?>						
						<p><?php echo $x.'. '.$item['pertanyaan'];?></p>
						<p><label><input type="radio" name="jawaban[<?php echo $item['id_soal']?>]" value="A" /> <?php echo $item['pilihan_a']?></label></p>
						<p><label><input type="radio" name="jawaban[<?php echo $item['id_soal']?>]" value="B" /> <?php echo $item['pilihan_b']?></label></p>
						<p><label><input type="radio" name="jawaban[<?php echo $item['id_soal']?>]" value="C" /> <?php echo $item['pilihan_c']?></label></p>
						<p><label><input type="radio" name="jawaban[<?php echo $item['id_soal']?>]" value="D" /> <?php echo $item['pilihan_d']?></label></p>
						<p><label><input type="radio" name="jawaban[<?php echo $item['id_soal']?>]" value="E" /> <?php echo $item['pilihan_e']?></label></p>			
						<hr>
						<div class="clearfix"></div>
				<?php $x++; 
					} 
				}else{
					echo "Soal tidak tersedia..";
				}
			?>
		</div>
		<div class="box-header well">
			<button type="submit" class="btn btn-primary">Submit</button>			
		</div>
		</form> 
	</div>
</div>
